<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>java</title>
    <link rel="stylesheet" href="/static/css/style.css"/>
</head>
<body>

    <div class="n-support">请使用Chrome、Safari等webkit内核的浏览器！</div><div class="n-head">
        <div class="g-doc f-cb">
            <div class="user">
                卖家你好,seller! <a href="/logout">[退出]</a>
            </div>
            <ul class="nav">
                <li><a href="/api/sellerindex">首页</a></li>
                <li><a href="/api/public">发布</a></li>
            </ul>
        </div>
    </div>


    </div><div class="g-doc">
        <div class="m-tab m-tab-fw m-tab-simple f-cb">
            <h2>内容编辑</h2>
        </div>
        <div class="n-public">
            <form class="m-form m-form-ht" id="form" method="post" action="/api/editSubmit?id=${book.id}" onsubmit="return false;" autocomplete="off">
                <div class="fmitem">
                    <label class="fmlab">标题：</label>
                    <div class="fmipt">
                        <input type="hidden" name="id" value="8"/>
                        <input class="u-ipt ipt" name="title" value="${book.title}" placeholder="2-80字符"/>
                    </div>
                </div>
                <div class="fmitem">
                    <label class="fmlab">摘要：</label>
                    <div class="fmipt">
                        <input class="u-ipt ipt" name="summary" value="${book.summary}" placeholder="2-140字符"／>
                    </div>
                </div>
                <div class="fmitem">
                <label class="fmlab">图片：</label>
                	<div class="fmipt" id="uploadType">
    	                <input name="pic" type="radio" value="url" checked /> 图片地址
    					<#--<input name="pic" type="radio" value="file" /> 本地上传-->
    				</div>
                </div>
                <div class="fmitem">
                    <label class="fmlab"></label>
                    <div class="fmipt" id="urlUpload">
                        <input class="u-ipt ipt"  name="image" placeholder="图片地址" value="${book.picture}"/>
                    </div>
                    <div class="fmipt" id="fileUpload"  style="display:none">
                        <input class="u-ipt ipt" name="file" type="file" id="fileUp"/>
                        <button class="u-btn u-btn-primary" id="upload">上传</button>
                    </div>
                </div>
                <div class="fmitem">
                    <label class="fmlab">正文：</label>
                    <div class="fmipt">
                        <textarea class="u-ipt" name="detail" rows="10" placeholder="2-1000个字符">${book.detail}</textarea>
                    </div>
                </div>
                <div class="fmitem">
                    <label class="fmlab">价格：</label>
                    <div class="fmipt">
                        <input class="u-ipt price" name="price" value="${book.price}"/>元
                    </div>
                </div>
                <div class="fmitem fmitem-nolab fmitem-btn">
                    <div class="fmipt">
                        <button type="submit" class="u-btn u-btn-primary u-btn-lg">保 存</button>
                    </div>
                </div>
            </form>
            <span class="imgpre"><img src="${book.picture}" alt="" id="imgpre"></span>
        </div>
    </div>



    <div class="n-foot">
        <p>版权所有：网易云课堂<a href="http://mooc.study.163.com/smartSpec/detail/85002.htm">Java开发工程师(Web方向)</a>微专业团队</p>
    </div>
    <script type="text/javascript" src="/js/global.js"></script>
    <script type="text/javascript" src="/js/public.js"></script>
</body>
</html>